<template>
	  <view class="container">
		  

		<view class="modal">
			<view>
				<uv-toast ref="toast"></uv-toast>
			</view>
			    <view class="modal-content">
				      <view class="modal-header">
					        <h2>{{this.lanuage.autoTasktitle}}</h2>
					        <i class="fa fa-times" @click="closeModal"></i>
					      </view>
				      <view class="modal-body" style="width:1000px;">
					     <view>
						<table style="width: 100%;">
							<tr>
								<td>{{lanuage.sb1title}}：</td>
								<td style="min-width: 50px;text-align: right;">{{lanuage.opentimetitle }}</td>
								<td><input type="number" class="txtinput" id="sb1Start" v-model="sb1Start" value="0" />
								</td>
								<td>
									{{lanuage.mintitle }}
								</td>
								<td style="min-width:50px;text-align: right;color: grey;">{{lanuage.closetimetitle }}
								</td>
								<td style="color: grey;">
									<input type="number" class="txtinput" style="float:left;" id="sb1Stop"
										v-model="sb1Stop" value="0" />
								</td>
								<td style="color: grey;">{{lanuage.mintitle}}</td>
								<td>
									<switch :checked="sb1Check" @change="switchsb1Change()" />
								</td>
								<td class="tdtime">{{sb1time}}</td>
								<td><button class="butset2"
										@click="setPlainItemValue(2,sb1Start*60);setPlainItemValue(4,sb1Stop*60);modalSetStatus(1,sb1Check);">{{lanuage.save}}</button>
								</td>
							</tr>



							<tr>
								<td>{{this.lanuage.dg1title}}：</td>
								<td style="text-align: right;">{{this.lanuage.opentimetitle }}</td>
								<td style="width: 90px;"><input type="number" class="txtinput" id="dg1Start"
										v-model="dg1Start" value="0" />
								</td>
								<td style="text-align: left;">
									{{this.lanuage.hourtitle}}
								</td>
								<td style="color: grey;text-align: right;">{{this.lanuage.closetimetitle }}</td>
								<td style="color: grey;width: 90px;">
									<input type="number" class="txtinput" style="float:left;" id="dg1Stop"
										v-model="dg1Stop" value="0" />
								</td>
								<td style="color: grey;text-align: left;">{{this.lanuage.hourtitle}}</td>

								<td>
									<switch :checked="dg1Check" @change="switchdg1Change()" />
								</td>
								<td class="tdtime">{{this.dg1time}}</td>
								<td><button class="butset2"
										@click="setPlainItemValue(6,dg1Start*60*60);setPlainItemValue(8,dg1Stop*60*60);modalSetStatus(2,dg1Check);">{{this.lanuage.save}}</button>
								</td>
							</tr>
							<tr>
								<td>{{lanuage.dg2title}}：</td>
								<td style="min-width: 50px;text-align: right;">{{lanuage.opentimetitle }}</td>
								<td><input type="number" class="txtinput" id="dg2Start" v-model="dg2Start" value="0" />
								</td>
								<td>
									{{lanuage.hourtitle}}
								</td>
								<td style="min-width:50px;text-align: right;color: grey;">{{lanuage.closetimetitle }}
								</td>
								<td style="color: grey;">
									<input type="number" class="txtinput" style="float:left;" id="dg2Stop"
										v-model="dg2Stop" value="0" />
								</td>
								<td style="color: grey;">{{lanuage.hourtitle}}</td>

								<td>
									<switch :checked="dg2Check" @change="switchdg2Change()" />
								</td>
								<td class="tdtime">{{dg2time}}</td>
								<td><button class="butset2"
										@click="setPlainItemValue(14,dg2Start*60*60);setPlainItemValue(16,dg2Stop*60*60);modalSetStatus(4,dg2Check);">{{lanuage.save}}</button>
								</td>
							</tr>
							<tr>
								<td>{{lanuage.dg3title}}：</td>
								<td style="min-width: 50px;text-align: right;">{{lanuage.opentimetitle }}</td>
								<td><input type="number" class="txtinput" id="dg3Start" v-model="dg3Start" value="0" />
								</td>
								<td>
									{{lanuage.hourtitle}}
								</td>
								<td style="min-width:50px;text-align: right;color: grey;">{{lanuage.closetimetitle }}
								</td>
								<td style="color: grey;">
									<input type="number" class="txtinput" style="float:left;" id="dg3Stop"
										v-model="dg3Stop" value="0" />
								</td>
								<td style="color: grey;">{{lanuage.hourtitle}}</td>

								<td>
									<switch :checked="dg3Check" @change="switchdg3Change()" />
								</td>
								<td class="tdtime">{{dg3time}}</td>
								<td><button class="butset2"
										@click="setPlainItemValue(18,dg3Start*60*60);setPlainItemValue(20,dg3Stop*60*60);modalSetStatus(5,dg3Check);">{{lanuage.save}}</button>
								</td>
							</tr>
						</table>


					</view>

					   </view>


				      <view class="modal-footer">
					        <button type="button" class="but1" @click="closeModal">{{this.lanuage.return}}</button>


					      </view>
				    </view>
			  
		</view>




		  
	</view>
</template>

<script>
	export default {

		data() {
			return {


				sb1Start: 0,
				sb1Stop: 0,
				sb1Check: true,
				sb1time: '',

				sb2Start: 0,
				sb2Stop: 0,
				sb2Check: true,
				sb2time: '',

				dg1Start: 0,
				dg1Stop: 0,
				dg1Check: true,
				dg1time: '',

				dg2Start: 0,
				dg2Stop: 0,
				dg2Check: true,
				dg2time: '',

				dg3Start: 0,
				dg3Stop: 0,
				dg3Check: true,
				dg3time: '',

				warnmsg: '',

				lanuage: {

					save: '',
					Runing: '',
					OperationSuccessful: '',
					OperationFaild: '',
					upperlimit: '',
					lowerlimit: '',
					configuration: '',
					return: '',
					openingtitle: '',
					waittitle: '',
					mintitle: ''
				},

				timer: null,
				timer1: null
			}
		},
		onReady() {

			// #ifdef APP-PLUS
			console.log('APP端');
			//this.showApp = true; //该代码仅在app中生效
			// #endif

			this._freshing = false;
			this.timer = setInterval(() => {
				/* 列表 */
				//	this.getProductWarn();
			}, 5000);
			this.timer1 = setInterval(() => {
				/* 列表 */
				this.getPlainItemTime();
			}, 5000);
		},
		methods: {
			async setPlainItemValue(modelno, value) {


				const ret = await this.$myRequest({
					url: "/api/product/p1015/PlainItem/setPlainItemValue?pguid=" + uni.getStorageSync(
						'productGuid') + "&val=" + value + "&modelno=" + modelno,
					data: {
						// pguid: uni.getStorageSync('productGuid'),
						// val: value,
						// modelno: modelno
					}
				})
				if (ret.respCode == "200") {
					this.getPlainItemValue(modelno);
					uni.showToast({
						title: this.lanuage.OperationSuccessful,
						//将值设置为 success 或者直接不用写icon这个参数
						icon: 'success',
						//显示持续时间为 2秒
						duration: 2000
					})
					//console.log('sucess' + JSON.stringify(ret.data));

				} else {
					uni.showToast({
						title: this.lanuage.OperationFaild,
						//将值设置为 success 或者直接不用写icon这个参数
						icon: 'none',
						//显示持续时间为 2秒
						duration: 2000
					})
					console.log('fail' + JSON.stringify(ret.data));
				}

			},
			async getPlainItemValue() {
				const ret = await this.$myRequest({
					url: "/api/product/p1015/PlainItem/getPlainItemValue?pguid=" + uni.getStorageSync(
						'productGuid'),
					data: {
						//pguid: uni.getStorageSync('productGuid'),
					}
				})
				if (ret.respCode == "200") {

					if (this.PlainItemValue == JSON.stringify(ret.data)) {
						return;
					}
					this.PlainItemValue = JSON.stringify(ret.data);

					ret.data.some((item, i) => {

						if (item.modelNo == 2) {
							this.sb1Start = item.value / 60;
						} else if (item.modelNo == 4) {
							this.sb1Stop = item.value / 60;
						} else if (item.modelNo == 10) {
							this.sb2Start = item.value / 60;
						} else if (item.modelNo == 12) {
							this.sb2Stop = item.value / 60;
						} else if (item.modelNo == 6) {
							this.dg1Start = item.value / 60 / 60;
						} else if (item.modelNo == 8) {
							this.dg1Stop = item.value / 60 / 60;
						} else if (item.modelNo == 14) {
							this.dg2Start = item.value / 60 / 60;
						} else if (item.modelNo == 16) {
							this.dg2Stop = item.value / 60 / 60;
						} else if (item.modelNo == 18) {
							this.dg3Start = item.value / 60 / 60;
						} else if (item.modelNo == 20) {
							this.dg3Stop = item.value / 60 / 60;
						}
					})
					//console.log('sucess' + JSON.stringify(ret.data));

				} else {
					console.log('fail' + JSON.stringify(ret.data));
				}

			},
			async getPlainItemTime() {
				const ret = await this.$myRequest({
					url: "/api/product/p1015/PlainItem/getPlainItemValue?pguid=" + uni.getStorageSync(
						'productGuid'),
					data: {
						//pguid: uni.getStorageSync('productGuid'),
					}
				})
				if (ret.respCode == "200") {

					ret.data.some((item, i) => {
						//Math.round 4舍5入
						//Math.floor 去小数点

						if (item.modelNo == 2) {
							if (this.sb1Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.sb1time = showTime;
								}
							}
						} else if (item.modelNo == 4) {
							if (this.sb1Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.waittitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.waittitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.sb1time = showTime;
								}
							}
						} else if (item.modelNo == 10) {
							if (this.sb2Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.sb2time = showTime;
								}
							}
						} else if (item.modelNo == 12) {
							if (this.sb2Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.waittitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.waittitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.sb2time = showTime;
								}
							}
						}

						if (item.modelNo == 6) {
							if (this.dg1Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.dg1time = showTime;
								}
							}
						} else if (item.modelNo == 8) {
							if (this.dg1Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.waittitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.waittitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.dg1time = showTime;
								}
							}
						}
						if (item.modelNo == 14) {
							if (this.dg2Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.dg2time = showTime;
								}
							}
						} else if (item.modelNo == 16) {
							if (this.dg2Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.waittitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.waittitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.dg2time = showTime;
								}
							}
						}
						if (item.modelNo == 18) {
							if (this.dg3Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.openingtitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.dg3time = showTime;
								}
							}
						} else if (item.modelNo == 20) {
							if (this.dg3Check == true) {
								if (item.waitCompleteTimeSS > 0) {
									var showTime = "";
									if (item.waitCompleteTimeSS <= 60 && item.waitCompleteTimeSS > 0) {
										showTime = this.lanuage.waittitle + " " + Math.floor(item
												.waitCompleteTimeSS) + " " + this.lanuage
											.secondtitle;
									} else if (item.waitCompleteTimeSS > 60) {
										showTime = this.lanuage.waittitle + " " + Math.floor(((item
												.waitCompleteTimeSS - 1) / 60) + 1) + " " + this.lanuage
											.mintitle;
									} else {
										showTime = "";
									}

									this.dg3time = showTime;
								}
							}
						}
						//console.log('sucess' + JSON.stringify(ret.data));
					})
				} else {
					console.log('fail' + JSON.stringify(ret.data));
				}

			},
			async setPlainStatus(modelno, value) {
				const ret = await this.$myRequest({
					url: "/api/product/p1015/Plain/setPlainStatus?pguid=" + uni.getStorageSync(
						'productGuid') + "&status=" + value + "&modelno=" + modelno,
					data: {}
				})
				if (ret.respCode == "200") {
					this.getPlainInfo();
					uni.showToast({
						title: this.lanuage.OperationSuccessful,
						//将值设置为 success 或者直接不用写icon这个参数
						icon: 'success',
						//显示持续时间为 2秒
						duration: 2000
					})
					//console.log('sucess' + JSON.stringify(ret.data));

				} else {
					uni.showToast({
						title: this.lanuage.OperationFaild,
						//将值设置为 success 或者直接不用写icon这个参数
						icon: 'none',
						//显示持续时间为 2秒
						duration: 2000
					})
					console.log('fail' + JSON.stringify(ret.data));
				}

			},
			async getPlainInfo() {
				const ret = await this.$myRequest({
					url: "/api/product/p1015/Plain/getPlainInfo?pguid=" + uni.getStorageSync(
						'productGuid'),
					data: {
						//pguid: uni.getStorageSync('productGuid'),
					}
				})
				if (ret.respCode == "200") {

					// 		if (this.PlainItemValue == JSON.stringify(ret.data)) {
					// 			return;
					// 		}
					// 		this.PlainItemValue = JSON.stringify(ret.data);



					ret.data.some((item, i) => {
						if (item.modelNo == 1) {
							if (item.status == 0) {
								this.sb1Check = true;
							} else {
								this.sb1Check = false;
							}
						} else if (item.modelNo == 3) {
							if (item.status == 0) {
								this.sb2Check = true;
							} else {
								this.sb2Check = false;
							}
						} else if (item.modelNo == 2) {
							if (item.status == 0) {
								this.dg1Check = true;
							} else {
								this.dg1Check = false;
							}
						} else if (item.modelNo == 4) {
							if (item.status == 0) {
								this.dg2Check = true;
							} else {
								this.dg2Check = false;
							}
						} else if (item.modelNo == 5) {
							if (item.status == 0) {
								this.dg3Check = true;
							} else {
								this.dg3Check = false;
							}
						}
					})
					//console.log('sucess' + JSON.stringify(ret.data));

				} else {
					console.log('fail' + JSON.stringify(ret.data));
				}

			},
			closeModal() {
				// uni.navigateTo({
				// 	url: "setParameter"
				// })
				uni.navigateBack();
			},
			modalSetStatus(modelno, warnischeck) {
				console.log(warnischeck);
				if (warnischeck == true) {
					this.setPlainStatus(modelno, 0);
				} else {
					this.setPlainStatus(modelno, 1);
				}


				var parms = {
					message: this.lanuage.OperationSuccessful,
					duration: 1000
				};

				this.$refs.toast.show({
					...parms,
					complete() {}
				});
			},
			switchsb1Change() {
				if (this.sb1Check == true) {
					this.sb1Check = false;
					this.sb1time = this.lanuage.stopwork;
				} else {
					this.sb1Check = true;
					this.sb1time = "";
				}
			},
			switchsb2Change() {
				if (this.sb2Check == true) {
					this.sb2Check = false;
					this.sb2time = this.lanuage.stopwork;
				} else {
					this.sb2Check = true;
					this.sb2time = "";
				}
			},
			switchdg1Change() {
				if (this.dg1Check == true) {
					this.dg1Check = false;
					this.dg1time = this.lanuage.stopwork;
				} else {
					this.dg1Check = true;
					this.dg1time = "";
				}
			},
			switchdg2Change() {
				if (this.dg2Check == true) {
					this.dg2Check = false;
					this.dg2time = this.lanuage.stopwork;
				} else {
					this.dg2Check = true;
					this.dg2time = "";
				}
			},
			switchdg3Change() {
				if (this.dg3Check == true) {
					this.dg3Check = false;
					this.dg3time = this.lanuage.stopwork;
				} else {
					this.dg3Check = true;
					this.dg3time = "";
				}
			},
			async getPruductLanguage() {
				var languagecode = uni.getStorageSync('languagecode');
				const ret = await this.$myRequest({
					url: "/api/common/Language/getPruductLanguageAlone?pguid=" + uni.getStorageSync(
						'productGuid') + "&languagecode=" + languagecode,
					data: {
						//pguid: uni.getStorageSync('productGuid'),
					}
				})
				if (ret.respCode == "200") {


					var cCode = 0;
					var content = "";
					ret.data.some((item, i) => {
						cCode = item.code;
						content = item.content;
						if (cCode == 1035) {
							this.lanuage.OperationSuccessful = content;
						} else if (cCode == 1034) {
							this.lanuage.OperationFaild = content;
						} else if (cCode == 1005) {
							this.lanuage.save = content;
						} else if (cCode == 1070) {
							this.lanuage.autoTasktitle = content;
						} else if (cCode == 1054) {
							this.lanuage.return = content;
						} else if (cCode == 1075) {
							this.lanuage.waittitle = content;
						} else if (cCode == 1074) {
							this.lanuage.openingtitle = content;
						} else if (cCode == 1001) {
							this.lanuage.closetimetitle = content;
						} else if (cCode == 1000) {
							this.lanuage.opentimetitle = content;
						} else if (cCode == 1014) {
							this.lanuage.mintitle = content;
						} else if (cCode == 1007) {
							this.lanuage.secondtitle = content;
						} else if (cCode == 1076) {
							this.lanuage.hourtitle = content;
						} else if (cCode == 1079) {
							this.lanuage.stopwork = content;
						} else if (cCode == 1106) {
							this.lanuage.sb1title = content;
						} else if (cCode == 1111) {
							this.lanuage.sb2title = content;
						} else if (cCode == 1107) {
							this.lanuage.dg1title = content;
						} else if (cCode == 1108) {
							this.lanuage.dg2title = content;
						} else if (cCode == 1109) {
							this.lanuage.dg3title = content;
						}
					});

					//	console.log('sucess' + JSON.stringify(ret.data));

				} else {
					uni.showToast({
						title: this.lanuage.OperationFaild,
						//将值设置为 success 或者直接不用写icon这个参数
						icon: 'none',
						//显示持续时间为 2秒
						duration: 2000
					})
					console.log('fail' + JSON.stringify(ret.data));
				}

			}

		},
		onUnload() {

			if (this.timer) {
				clearInterval(this.timer)
				this.timer = null

				clearInterval(this.timer1)
				this.timer1 = null
			}
		},
		onHide() {
			if (this.timer) {
				clearInterval(this.timer)
				this.timer = null

				clearInterval(this.timer1)
				this.timer1 = null
			}
		},
		onLoad(options) {
			this.getPruductLanguage();
			this.getPlainItemValue();
			this.getPlainInfo();
			setTimeout(() => {
				this.getPlainItemTime();
			}, 500);

			//this.getPlainItemTime();
			//this.getValueCurrentByProduct();
		}
	}
</script>
<style lang="scss">
	.container {
		position: absolute;
		width: 100%;
		height: 100%;
		//background-color:darkblue;
		//background-color: #f3f1f1;
		//background-color: #28c32b;
		background-image: url("../../static/imageV7/bg3.jpeg");
		background-size: 100% 100%;
		font-family: '微软雅黑';

	}

	.modal .txtinput {
		width: 80px;
		height: 35px;
		background-color: #b0e2a3;
		text-align: center;
	}

	.modal {
		position: fixed;
		left: 0;
		top: 0;
		z-index: 99999;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.modal .modal-content {

		background-color: #ffffff;
		border-radius: 10rpx;
		overflow: hidden;
	}

	.modal .modal-content .modal-header {
		background-color: green;
		color: #ffffff;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10rpx;
	}

	.modal .modal-content .modal-header h2 {
		margin: 0;
	}

	.modal .modal-content .modal-header i {
		font-size: 20rpx;
		cursor: pointer;
	}

	.modal .modal-content .modal-body {
		padding: 20rpx;
	}

	.modal-body td {
		line-height: 55px;
	}

	.modal .modal-content .modal-footer {
		background-color: #eeeeee;
		padding: 10rpx;

		display: flex;
		justify-content: flex-end;
	}

	.modal .modal-content .modal-footer button {
		border: none;
		margin-left: 10rpx;
		margin: 10px;
		min-width: 100px;
		border-radius: 5rpx;
		cursor: pointer;
	}

	.modal .modal-content .modal-footer .but1 {
		background-color: green;
		color: #ffffff;
	}

	.modal .modal-content .modal-footer .but2 {
		background-color: #dddddd;
		color: #333333;
	}

	.tdtime {
		//color: gray;
		font-size: 16px;
	}
</style>